<template>
  <div class="zhao-sheng animation-opacity">
    <!-- 轮播图 -->
    <RotationChart />
    <!-- 头条 -->
    <div class="to">
      <TouTiao />
      <div class="brief">
        <p class="brief_top">热门招生院校推荐</p>
        <p class="brief_bot">高中、职高、技校、中专、落榜、低分考生,均可报考</p>
      </div>
      <p class="message_title">上好大学，选好专业，人手有更好的出路</p>
      <div class="form">
        <form action class="form1">
          <input
            type="text"
            style="margin-bottom: 0.6rem"
            placeholder="请输入你的名字"
            class="form-ipt"
          />
          <input
            style="margin-bottom: 0.6rem"
            type="text"
            placeholder="请输入你的电话号码"
            class="form-ipt"
          />
          <button type="button">提交信息检查报考名额</button>
        </form>
      </div>
      <div class="enter">
        <p class="enter_top">报考信息查询</p>
        <p class="enter_bot">报考指南快捷导航,一站式全方位服务</p>
      </div>
      <div class="enter_list">
        <LoadingComponent v-slot="{loadingFlag}" class="enter_list1" v-for="it in baokaoxinxichaxun" :key="it.id">
          <a
            href="https://p.qiao.baidu.com/cps/chat?siteId=17865090&userId=39789408&siteToken=1592882751da134d1450a7e08b16ffcb"
          >
            <img :src="it.img" v-if="loadingFlag" />
            <p>{{ it.title }}</p>
          </a>
        </LoadingComponent>
      </div>
      <div class="enter">
        <p class="enter_top">推荐院校报考信息一览</p>
        <p class="enter_bot">想去哪个学校任你选择</p>
      </div>
      <div class="academy_list">
        <LoadingComponent
          v-slot="{loadingFlag}"
          class="academy_list1"
          v-for="it in AllyeDates"
          :key="it.category_id"
        >
          <img :src="'http://www.shxw114.com:9527/' + it.product_logo" v-if="loadingFlag" />
          <p class="academy_list1_title">{{ it.product_name }}</p>
          <div class="college_thr">
            <span class="college_thr_le">
              <a href="##">查看简章</a>
            </span>
            <span class="college_thr_ri">
              <a
                href="https://p.qiao.baidu.com/cps/chat?siteId=17865090&userId=39789408&siteToken=1592882751da134d1450a7e08b16ffcb"
                >专业咨询</a
              >
            </span>
          </div>
        </LoadingComponent>
      </div>
      <div class="check"><a href="##">查看全部院校专业和简章</a></div>
      <div class="enter">
        <p class="enter_top">名校热门专业报考攻略</p>
        <p class="enter_bot">报考指南快速导航，一站式全方位服务</p>
      </div>
      <div class="academy_list">
        <LoadingComponent
          v-slot="{loadingFlag}"
          class="academy_list1"
          v-for="it in tuijianzhuanyeDates"
          :key="it.id"
          style="height: 9rem"
        >
          <img :src="it.img" v-if="loadingFlag" />
          <span class="career_tw">空乘专业</span>
          <div class="career_thr">平均新资：{{ it.money }}</div>
          <div class="career_four">就业方向：{{ it.title }}</div>
          <div class="college_thr">
            <span class="college_thr_le">
              <a href="##">查看简章</a>
            </span>
            <span class="college_thr_ri">
              <a
                href="https://p.qiao.baidu.com/cps/chat?siteId=17865090&userId=39789408&siteToken=1592882751da134d1450a7e08b16ffcb"
                >专业咨询</a
              >
            </span>
          </div>
        </LoadingComponent>
      </div>
      <div class="check"><a href="##">查看更多专业介绍</a></div>
      <AI />
      <div class="status">成为一名合格的大学生</div>
      <LoadingComponent v-slot="{loadingFlag}" class="status_con">
        <img src="/img/报名条件.7c214866.jpg" v-if="loadingFlag" />
      </LoadingComponent>
      <LoadingComponent v-slot="{loadingFlag}" class="ent">
        <img src="/img/报名流程.960607ac.jpg" v-if="loadingFlag" />
      </LoadingComponent>
      <div class="enter">
        <p class="enter_top">就读国家名校,技能学历双丰收</p>
        <p class="enter_bot">
          毕业前学生会拿到国家承认的学历，还会拿到相应的职业技能证书
        </p>
      </div>
      <div class="certificate">
        <LoadingComponent v-slot="{loadingFlag}" class="certificate_one" v-for="it in diplomaDates" :key="it.id">
          <img :src="it.img" v-if="loadingFlag" />
          <p>{{ it.title }}</p>
        </LoadingComponent>
      </div>
    </div>
    <MsBm />
    <ImportantNotices />
    <Footer />
    <InquiryHk />
  </div>
</template>
<script setup>
import RotationChart from "../../components/RotationChart/index.vue";
import TouTiao from "../../components/TouTiao/index.vue";
import Footer from "../../components/Footer/index.vue";
import AI from "../../components/AI/index.vue";
import InquiryHk from "../inquiryHk/index.vue";
import ImportantNotices from "../../components/ImportantNotices/index.vue";
import MsBm from "../../components/MsBm/index.vue";
import { axiosFun } from "../../axios/index.js";
import { AllyeGet } from "../../server/index.js";
import { ref } from "vue";
const baokaoxinxichaxun = ref({});
const AllyeDates = ref({});
const tuijianzhuanyeDates = ref({});
const diplomaDates = ref({});
(async (v) => {
  const { data } = await axiosFun().post("/JSON/baokaoxinxichaxun/index.json");
  baokaoxinxichaxun.value = data;
})();
(async (v) => {
  const { data } = await AllyeGet();
  AllyeDates.value = data;
})();
(async (v) => {
  const { data } = await axiosFun().post("/JSON/tuijianzhuanye/index.json");
  tuijianzhuanyeDates.value = data;
})();
(async (v) => {
  const { data } = await axiosFun().post("/JSON/diploma/index.json");
  diplomaDates.value = data;
})();
</script>
<style scoped>
.zhao-sheng {
  width: 100%;
  margin-bottom: 3rem;
}
.to {
  width: 100%;
  padding-left: 0.2rem;
  padding-right: 0.2rem;
  box-sizing: border-box;
  margin-top: 0.2rem;
}
.brief {
  width: 100%;
  height: 1.2rem;
  margin-bottom: 0.6rem;
}
.brief_top {
  width: 100%;
  text-align: center;
  font-size: 1.2rem;
  color: #666;
}
.brief_bot {
  width: 100%;
  height: 0.6rem;
  font-size: 0.4rem;
  color: #ffa930;
  text-align: center;
}
.message_title {
  width: 100%;
  height: 0.8rem;
  margin-top: 1.8rem;
  margin-bottom: 0.8rem;
  text-align: center;
  font-size: 0.6rem;
  color: #666;
  line-height: 0.8rem;
}
.enter {
  width: 100%;
  height: auto;
  margin-top: 1rem;
}
.enter .enter_top {
  width: 100%;
  font-size: 0.8rem;
  color: #666;
  line-height: 1rem;
  text-align: center;
}
.enter .enter_bot {
  width: 100%;
  font-size: 0.4rem;
  color: #ffa930;
  line-height: 1rem;
  text-align: center;
}
.enter_list {
  width: 100%;
  height: auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}
.enter_list div {
  width: 4.8rem;
  height: 4.8rem;
  background: #dfdfdf;
  margin-bottom: 0.2rem;
}
.enter_list div img {
  width: 3rem;
  height: 3rem;
  display: block;
  margin: 0.3rem auto 0;
}
.enter_list div p {
  text-align: center;
  line-height: 1rem;
  font-size: 0.6rem;
  color: #666;
}
.academy_list {
  width: 100%;
  height: auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}
.academy_list1 {
  width: 7.2rem;
  height: 7.2rem;
  background: #dfdfdf;
}
.academy_list1 > img {
  width: 100%;
  height: 4.5rem;
}
.academy_list1 > p {
  color: #666;
  font-size: 0.6rem;
  text-align: center;
  line-height: 1rem;
}
.college_thr {
  width: 100%;
  height: auto;
  display: flex;
  justify-content: space-around;
  margin-top: 0.2rem;
}
.college_thr_le {
  display: block;
  width: 2.5rem;
  height: 1rem;
  text-align: center;
  font-size: 0.4rem;
  line-height: 1rem;
  border: 0.001rem solid #3acaff;
  border-radius: 0.2rem;
  background: #fff;
}
.college_thr_le a {
  color: #3acaff;
}
.college_thr_ri {
  display: block;
  width: 2.5rem;
  height: 1rem;
  text-align: center;
  font-size: 0.4rem;
  line-height: 1rem;
  border-radius: 0.2rem;
  background: #ffa930;
}
.college_thr_ri a {
  color: #fff;
}
.check {
  width: 80%;
  height: 1.5rem;
  border: 0.001rem solid #f90;
  font-size: 0.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.2rem;
  margin: 0.4rem auto 0;
}
.check a {
  color: #f90;
}
.academy_list1 > .career_tw {
  color: #3acaff;
  margin-left: 0.6rem;
  font-size: 0.5rem;
}
.academy_list1 > .career_thr {
  color: #666;
  font-size: 0.5rem;
  margin-left: 0.6rem;
}
.academy_list1 > .career_four {
  color: #666;
  font-size: 0.5rem;
  margin-left: 0.6rem;
}
.status {
  width: 100%;
  font-size: 0.8rem;
  color: #666;
  line-height: 1.5rem;
  text-align: center;
}
.certificate {
  width: 100%;
  height: auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}
.certificate_one {
  width: 7rem;
  height: 5.2rem;
}
.certificate_one img {
  width: 100%;
  height: 4rem;
}
.certificate_one p {
  font-size: 0.6rem;
  color: #3acaff;
  text-align: center;
  line-height: 1rem;
}
</style>